Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add telemetry #134

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

ruromero
Copy link
Collaborator

@ruromero ruromero commented Aug 31, 2023

Example generated events:

Identify

{
  "anonymousId": "a97b79b5-908f-43f8-b857-0d4785c96f67",
  "context": {
    "library": {
      "name": "com.redhat.ecosystemappeng:exhort",
      "version": "0.0.1-SNAPSHOT"
    }
  },
  "integrations": {},
  "messageId": "api-2UkkARFTTJLV5miOA4RcG3AxX5v",
  "originalTimestamp": "2023-08-31T14:07:00.453+00:00",
  "receivedAt": "2023-08-31T14:07:01.113Z",
  "timestamp": "2023-08-31T14:07:00.453Z",
  "traits": {
    "serverBuild": "2023-08-31T14:03:40.133Z",
    "serverName": "RHDA - Exhort",
    "serverVersion": "0.0.1-SNAPSHOT"
  },
  "type": "identify"
}

Track

{
  "anonymousId": "a97b79b5-908f-43f8-b857-0d4785c96f67",
  "context": {
    "library": {
      "name": "com.redhat.ecosystemappeng:exhort",
      "version": "0.0.1-SNAPSHOT"
    }
  },
  "event": "rhda.exhort.analysis",
  "integrations": {},
  "messageId": "api-2UkkAbkB9oFCzqRWSoKq5AjQ98p",
  "originalTimestamp": "2023-08-31T14:07:02.440+00:00",
  "properties": {
    "providers": {
      "provider": "snyk",
      "recommendations": 0,
      "remediations": 0,
      "report": {
        "dependencies": {
          "scanned": 6,
          "transitive": 140
        },
        "vulnerabilities": {
          "critical": 2,
          "direct": 6,
          "high": 15,
          "low": 15,
          "medium": 55,
          "total": 87
        }
      }
    },
    "requestType": "text/html",
    "sbom": "application/vnd.cyclonedx+json"
  },
  "receivedAt": "2023-08-31T14:07:02.530Z",
  "timestamp": "2023-08-31T14:07:02.440Z",
  "type": "track"
}

Signed-off-by: Ruben Romero Montes <[email protected]>
@ruromero ruromero merged commit 9be7eb6 into RHEcosystemAppEng:stable Aug 31, 2023
5 of 7 checks passed
@ruromero ruromero deleted the telemetry branch August 31, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant